{
  interface Boom{
    readonly id:number,
    name:string,
    age:number,
    hobby:string[],
    cook():void
  }


  let me:Boom={
    id:1,
    name:'宇宙',
    age:24,
    hobby:['唱','跳','rap','篮球'],
    cook(){
      console.log('好耶');
    }
  }
  let you:Boom={
    id:2,
    name:'宇宙',
    age:24,
    hobby:['唱','跳','rap','篮球'],
    cook:()=>{
      console.log('好耶');
    }
  }
}

{
  interface Test{
    name:string;
    age:number;
    hobby:string[];
    cook():void
  }
  class BoyFriend implements Test{
    name: string;
    age:number;
    hobby:string[]
    car?:string;
    house?:string;
    
    constructor(name:string,age:number,hobby:string[],car?:string) {
      this.name=name;
      this.age=age;
      this.hobby=hobby;
      // this.car=car
    }
    cook(): void {
        console.log('asda'); 
    }


  }

  let yyy:Test=new BoyFriend('yyy',19,['c','t','r','l'])
  


}